package com.aitou.mrylive.presentation.ui.main.find.pengyouquan;

import com.aitou.mrylive.data.bean.BaseResponse;
import com.aitou.mrylive.data.repository.NewSourceFactory;

import rx.Observable;

/**
 * Created by admin on 2016/9/22.
 */
public class PublishManager {
    public Observable<BaseResponse<PublishBean>> publish(String token, String content, String pics){
        return NewSourceFactory.create().publish(token,content,pics);
    }
    public Observable<BaseResponse<String>> updatePublish(String token,String pid,String content,String pics){
        return NewSourceFactory.create().updatePublish(token, pid, content, pics);
    }

    public Observable<BaseResponse<String>> deletePublish(String token,String pid){
        return NewSourceFactory.create().deletePublish(token, pid);
    }
    public Observable<BaseResponse<String>> dianzan(String token,String pid,String isLike){
        return NewSourceFactory.create().dianzan(token, pid, isLike);
    }
    public Observable<BaseResponse<PublishBean>> replyOne(String token,String pid,String content){
        return NewSourceFactory.create().replyOne(token, pid, content);
    }
    public Observable<BaseResponse<PublishBean>> replyTwo(String token,String rid,String content){
        return NewSourceFactory.create().replyTwo(token, rid, content);
    }
    public Observable<BaseResponse<String>> replyDelete(String token,String rid){
        return NewSourceFactory.create().replyDelete(token, rid);
    }
}
